import Layout from '@/layout'

const myBriefcase = {
  path: '/myBriefcase',
  component: Layout,
  redirect: 'noRedirect',
  name: 'myBriefcase',
  meta: {
    title: '我的公文包',
    icon: 'component',
    roles: ['nomalAuth', 'staff', 'staffKnowPro']
  },
  children: [
    // {
    //   path: 'digitalArchives',
    //   name: 'digitalArchives',
    //   component: () => import('@/views/myBriefcase/digitalArchives.vue'),
    //   meta: {
    //     title: '提交的数字档案',
    //     roles: ['staffArch', 'staffManagerArch']
    //   }
    // },
    // { TODO
    //   path: 'digitalArchives',
    //   name: 'digitalArchives',
    //   component: () => import('@/views/myBriefcase/digitalArchives.vue'),
    //   meta: {
    //     title: '预归档的档案',
    //     roles: ['Arch']
    //   }
    // },
    {
      path: 'archBorrowAudit',
      name: 'archBorrowAudit',
      component: () => import('@/views/myBriefcase/archBorrowAudit.vue'),
      meta: {
        title: '档案借阅审核',
        roles: ['nomalAuth']
      }
    },
    {
      path: 'myBriefcaseArchBorrow',
      name: 'myBriefcaseArchBorrow',
      component: () => import('@/views/myBriefcase/archBorrow.vue'),
      meta: {
        title: '借阅的档案',
        roles: ['staff']
      }
    },
    // {
    //   path: 'archBorrowStart',
    //   name: 'archBorrowStart',
    //   hidden: true,
    //   activeMenu: '/myBriefcase/archBorrow',
    //   component: () => import('@/views/myBriefcase/archBorrowStart.vue'),
    //   meta: {
    //     title: '借阅的档案',
    //     roles: ['staff']
    //   }
    // },
    {
      path: 'bodyOfKnowledge',
      name: 'bodyOfKnowledge',
      component: () => import('@/views/myBriefcase/bodyOfKnowledge.vue'),
      meta: {
        title: '设置知识体系',
        roles: ['staffKnowPro', 'staffManagerKnowPro']
      }
    },
    {
      path: 'labelLibrary',
      name: 'labelLibrary',
      component: () => import('@/views/knowledgeManagement/labelLibrary.vue'),
      meta: {
        title: '标签库',
        roles: ['staffKnowPro', 'staffManagerKnowPro']
      }
    },
    {
      path: 'launch',
      name: 'launch',
      component: () => import('@/views/myBriefcase/launch.vue'),
      meta: {
        title: '发布的知识',
        roles: ['staff', 'Manager']
      }
    },
    {
      path: 'knowledgePublishing',
      name: 'knowledgePublishing',
      component: () => import('@/views/myBriefcase/knowledgePublishing.vue'),
      meta: {
        title: '审核的知识',
        roles: ['Manager']
      }
    },
    {
      path: 'read',
      name: 'read',
      component: () => import('@/views/myBriefcase/read.vue'),
      meta: {
        title: '阅读的知识',
        roles: ['staff', 'Manager']
      }
    }
  ]
}

export default myBriefcase
